def number = [1,2,3]
assert number instanceof List

def linkedList = [1,2,3] as LinkedList
assert linkedList instanceof java.util.LinkedList